package com.cmpe451.nutty.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;


@Entity
@Table(name = "API_USER")
public class ApiUser extends BaseModel {
	private static final long serialVersionUID = 1L;

	@Column(name = "ACCESS_TOKEN")
	private String accessToken;

	@Column(name = "ACCSES_TOKEN_SECRET")
	private String accessTokenSecret;

	@Column(name = "SCREEN_NAME")
	private String screenName;

	@Column(name = "TWITTER_ID", nullable = false, unique = true)
	private Long twitterId;

	@Column(name = "PROFILE_PIC")
	private String profilePicture;

	@Column(name = "LANGUAGE")
	private String language;

	@Column(name = "FULL_NAME")
	private String fullname;

	@Column(name = "STATUS")
	@Enumerated(EnumType.STRING)
	private ApiUserStatus status;

	public ApiUser() {}

	public String getAccessToken() {
		return accessToken;
	}

	public void setAccessToken(String accessToken) {
		this.accessToken = accessToken;
	}

	public String getAccessTokenSecret() {
		return accessTokenSecret;
	}

	public void setAccessTokenSecret(String accessTokenSecret) {
		this.accessTokenSecret = accessTokenSecret;
	}

	public String getScreenName() {
		return screenName;
	}

	public void setScreenName(String screenName) {
		this.screenName = screenName;
	}

	public Long getTwitterId() {
		return twitterId;
	}

	public void setTwitterId(Long twitterId) {
		this.twitterId = twitterId;
	}

	public String getProfilePicture() {
		return profilePicture;
	}

	public void setProfilePicture(String profilePicture) {
		this.profilePicture = profilePicture;
	}

	public String getLanguage() {
		return language;
	}

	public void setLanguage(String language) {
		this.language = language;
	}

	public String getFullname() {
		return fullname;
	}

	public void setFullname(String fullname) {
		this.fullname = fullname;
	}

	public ApiUserStatus getStatus() {
		return status;
	}

	public void setStatus(ApiUserStatus status) {
		this.status = status;
	}
}
